package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysProcurement;
import com.jk.smartelderlycare.dto.SysPurchaseput;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/12/5 20:42
 * @Version v1.0
 */
public interface SysPurchaseputServiceApi {

    /**
     * @description: 后端分页查询
     * @param: [sysProcurement, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysProcurement>
     * @author hhk
     * @date: 2024/12/5 9:34
     */
    @PostMapping(value = "/sysPurchaseput/findSysPurchaseputPaginationList")
    public PagedResponse<SysPurchaseput> findSysPurchaseputPaginationList(@RequestBody SysPurchaseput sysPurchaseput, @RequestParam Integer pageNum, @RequestParam Integer pageSize);
    /**
     * @description: 新增采购
     * @param: [sysProcurement]
     * @return: void
     * @author hhk
     * @date: 2024/12/5 9:35
     */
    @PostMapping(value = "/sysPurchaseput/addSysPurchaseput")
    public void addSysPurchaseput(@RequestBody SysPurchaseput sysPurchaseput);
    /**
     * @description:
     * @param: [documentId]
     * @return: void
     * @author hhk
     * @date: 2024/12/5 9:40
     */
    @DeleteMapping(value = "/sysPurchaseput/deleteSysProcurementById")
    public void deleteSysPurchaseputById(@RequestParam Long purchasePutid);
    /**
     * @description: 审核
     * @param: [documentId]
     * @return: void
     * @author hhk
     * @date: 2024/12/5 9:45
     */
    @PutMapping(value = "/sysPurchaseput/upStatusById")
    public void upStatusById(@RequestParam  Long purchasePutid);

    /**
     * @description: 未审核
     * @param: [documentId]
     * @return: void
     * @author hhk
     * @date: 2024/12/5 9:45
     */
    @PutMapping(value = "/sysPurchaseput/downStatusById")
    public void downStatusById(@RequestParam  Long purchasePutid);
    /**
     * @description: 根据id查询采购信息
     * @param: [documentId]
     * @return: void
     * @author hhk
     * @date: 2024/12/5 9:45
     */
    @GetMapping(value = "/sysPurchaseput/findSysPurchaseputById")
    public void findSysPurchaseputById(@RequestParam Long purchasePutid);
    /**
     * @description: 修改
     * @param: [sysProcurement]
     * @return: void
     * @author hhk
     * @date: 2024/12/5 9:48
     */
    @PutMapping(value = "/sysPurchaseput/updateSysPurchaseput")
    public void updateSysPurchaseput(@RequestBody SysPurchaseput sysPurchaseput);
    /**
     * @description: 导出
     * @param: []
     * @return: com.jk.smartelderlycare.dto.SysProcurement
     * @author hhk
     * @date: 2024/12/5 9:50
     */
    @GetMapping(value = "/sysPurchaseput/findSysPurchaseput")
    public List<SysPurchaseput> findSysProcurement();

    /**
     * @description: 导入
     * @param: []
     * @return: com.jk.smartelderlycare.dto.SysProcurement
     * @author hhk
     * @date: 2024/12/5 9:50
     */
    @PostMapping(value = "/sysPurchaseput/addProcurement")
    public void addProcurement(@RequestBody SysPurchaseput sysPurchaseput);
    /**
     * @description: 关闭
     * @param: [vendorName]
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysProcurement>
     * @author hhk
     * @date: 2024/12/5 20:37
     */
    @GetMapping(value = "/sysPurchaseput/ShutdownStatusById")
    public void ShutdownStatusById(@RequestParam Long purchasePutid);

}
